#if !USE_CONSOLE

#ifndef OPERATION_DIALOG_H
#define OPERATION_DIALOG_H

#include "src/scene/combinedObject.h"

#include "src/interface/objectTreeItem.h"
#include "src/interface/materialDialog.h"
#include "src/interface/glwidget.h"

class OperationDialog : public MaterialDialog{
    Q_OBJECT

    public:
        OperationDialog(CombinedObject *, ObjectTreeItem *, QTreeWidgetItem *, GLWidget *, QWidget * = 0);
        ~OperationDialog();

    signals:
        void done();
        void changed();
        void deleteObject(Object *);
        void addObject(Object *);

    private:
        CombinedObject *combinedObject;
        ObjectTreeItem *item;
        QTreeWidgetItem *root;
        int operation, originalOperation;
        bool remove;

        void createLayout();
        void setButtonColor();

    private slots:
        void acceptAndChange();
        void changeOperation(int);
        void removeOperation(bool);
};

#endif

#endif //!USE_CONSOLE
